package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type UserLabelRequest struct {
	LabelCate uint `json:"label_cate" form:"label_cate"`

	LabelName string `json:"label_name" form:"label_name"`
}

func (r *UserLabelRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *UserLabelRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"label_cate": "required",

		"label_name": "required",
	}
}

func (r *UserLabelRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserLabelRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserLabelRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
